class LocationReq {
//  String data;
  String direction;
  String requestMethod;

  String key;
  String value;

  LocationReq(
      {this.direction = "bTos",
      this.requestMethod,
      this.key = "username",
      this.value});

  factory LocationReq.fromJson(Map<String, dynamic> json) {
    return LocationReq(
//      data: json['data'],
      direction: json['direction'],
      requestMethod: json['requestMethod'],
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
//    data['data'] = this.data;
    data['direction'] = this.direction;
    data['requestMethod'] = this.requestMethod;
    return data;
  }

  @override
  String toString() {
    return '{"direction":"$direction","requestMethod":"$requestMethod","data":"[{\\\"key\\\":\\\"$key\\\",\\\"value\\\":\\\"$value\\\"}]"}';
  }
}
